Skip to content

Feature/theme oled high contrast - #1256

Merged
ayomideadeniran merged 2 commits into
StellarDevHub:mainfrom
martinshub-tech:feature/theme-oled-high-contrast
Sep 3, 2026
Merged

Feature/theme oled high contrast#1256
ayomideadeniran merged 2 commits into
StellarDevHub:mainfrom
martinshub-tech:feature/theme-oled-high-contrast

Conversation

@martinshub-tech

Copy link
Copy Markdown

Closes #1090

What was accomplished
Zero Runtime CSS-in-JS: Fully transitioned the theme configurations in frontend/src/app/globals.css using :root, .dark, and .oled scopes for pure CSS token architecture.
Flicker-Free Theme Init & FOUC Prevention: Refactored layout.tsx and providers.tsx to completely remove the anti-pattern manual script injection. next-themes now handles correct SSR injection of the natively before first paint, preventing any layout shift or flashing.
OLED High-Contrast WCAG AAA: Implemented the OLED theme mapping explicitly with pure #000000 backgrounds. Contrast colors like text (#ffffff), muted text (#cccccc), and borders (#555555) have been verified to exceed the strict 7:1 contrast ratio required for WCAG AAA compliance.
Simultaneous Monaco Update: Integrated the useThemeMode hook dynamically into CodeEditor.tsx so the Monaco Editor automatically and instantly syncs with your theme selection. OLED mode triggers Monaco's native hc-black high-contrast theme.
Universal Component Update: ThemeToggle.tsx now correctly cycles through all 3 modes and propagates the exact color hexes simultaneously to Charts via themeColors.ts.

@vercel

vercel Bot commented Aug 31, 2026

Copy link
Copy Markdown

@martinshub-tech is attempting to deploy a commit to the Ayomide Adeniran's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Aug 31, 2026

Copy link
Copy Markdown

@martinshub-tech Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@adeniran19-maker

Copy link
Copy Markdown

@martinshub-tech PR under review — I will get back to you if I find any wrong implementations.

@ayomideadeniran
ayomideadeniran merged commit 37c96c7 into StellarDevHub:main Sep 3, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Admin Panel] Implement Dark/Light/OLED Theme System with CSS Custom Property Architecture

3 participants